package com.gxuwz.attendance.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.attendance.dao.ClassDao;
import com.gxuwz.attendance.entity.Class;
import com.gxuwz.attendance.service.ClassService;
import com.gxuwz.attendance.vo.Page;

@Service("ClassServiceImpl")
public class ClassServiceImpl implements ClassService {

	@Autowired
	private ClassDao classDao;
	
	@Override
	public List<Class> findByName(String className) {
		return classDao.findByName(className);
	}

	@Override
	public boolean add(Class clazz) {
		return classDao.add(clazz);
	}

	@Override
	public boolean update(Class clazz) {
		return classDao.update(clazz);
	}

	@Override
	public List<Class> findPage(Class clazz, Page page) {
		return classDao.findPage(clazz, page);
	}

	@Override
	public boolean delete(String ids) {
		return classDao.delete(ids);
	}

}
